package com.ysxsoft.wdg.adapter.home;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ysxsoft.wdg.R;
import com.ysxsoft.wdg.bean.BannerBean;

public class SearchHisAdapter extends BaseQuickAdapter<BannerBean,BaseViewHolder> {


    public SearchHisAdapter(int layoutResId) {
        super(layoutResId);
    }

    public void clear(){
        getData().clear();
        notifyDataSetChanged();
    }

    @Override
    protected void convert(BaseViewHolder helper, BannerBean item) {
        helper.setText(R.id.tv_content,item.getKeyword());
    }
}
